puts "/*"
puts " * Begin genrated code"
puts " */"

puts

puts "/*"
puts " * set_handlers - seting handlers to test idt"
puts " */"

puts "static void set_handlers64 (gate_desc64 *idt)"
puts '{'
256.times { |x|
  s = x.to_s
  puts '  set_int64 (idt, ' + s + ', (u64)int' + s + ');'
}
puts '}'

puts

puts "/*"
puts " * End of genrated code"
puts " */"